package org.begincode.admin.service;

import org.begincode.core.mapper.ResourceTypeMapper;
import org.begincode.core.model.ResourceType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by yangsj on 2016/5/2.
 */
@Service
public class ResourceTypeService {
    private Logger logger = LoggerFactory.getLogger(ResourceTypeService.class);

    @Resource
    ResourceTypeMapper resourceTypeMapper;

    public List<ResourceType> findResourceType() { return this.resourceTypeMapper.selectAll();
    }
}
